package com.beiye.drivertransport.adapter;

        import android.content.Context;
        import android.view.View;
        import android.widget.RelativeLayout;
        import android.widget.Toast;

        import com.android.frame.adapter.CommonAdapter;
        import com.android.frame.adapter.ViewHolder;
        import com.beiye.drivertransport.R;

        import java.util.List;

/**
 * Created by ky on 2017/12/29.
 */

public class MoreAdapter  extends CommonAdapter<String> {
    private Context context;

    public MoreAdapter(Context context, List<String> mList, int itemLayoutId) {
        super(context, mList, itemLayoutId);
        this.context = context;
    }

    @Override
    public void convert(ViewHolder holder, String item, final int positon) {
        RelativeLayout li_more_message = holder.getView(R.id.re_more);
        li_more_message.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(context,"通知"+(positon+1),Toast.LENGTH_SHORT).show();
            }
        });

    }
}
